<%= render 'public/flash_notice' %>
<%= render partial: 'public/errors', locals: { obj: @contact } %>

<ol class="breadcrumb">
  <li>系统设置</li>
  <li>联系我们</li>
  <li><%= language_for(@contact.language) %></li>
</ol>

<%= form_for [:cpanel, @contact], html: { role: 'form'} do |f| %>

   <div class="form-group">
    <%= f.label :电话 %>
    <%= f.text_field :phone, value: @contact.phone, class: 'form-control' %>
  </div>
  <div class="form-group">
    <%= f.label :传真 %>
    <%= f.text_field :fax, value: @contact.fax, class: 'form-control' %>
  </div>
  <div class="form-group">
    <%= f.label :地址 %>
    <%= f.text_field :address, value: @contact.address,  class: 'form-control' %>
  </div>

  <%= f.submit '更新', class: 'btn btn-primary'%>
  <%= link_to '返回',"/cpanel/contacts/show/#{@contact.language}", class: 'btn btn-default' %>

<% end %>
